export default {
  url: "/do/select/material",
  conditionLimit:null,
  selectable: false,
  showIndex: false,
  compact: 220,
  path: 'material/material',
  title: "物料中心",
  entitys: [{"name":"id","label":"编号","type":"search"},{"name":"creator","label":"创建人","type":"user"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"},{"name":"companyId","label":"所属公司","type":"search","depend":"company"},{"name":"title","label":"物料名称"},{"name":"internalCode","label":"内部编码"},{"name":"externalCode","label":"外部编码"},{"name":"sku","label":"规格型号"},{"name":"unit","label":"计量单位","code":"cfg_cfgMaterialUnit"},{"name":"taxExcluded","label":"不含税金额","type":"money"},{"name":"rate","label":"税率","code":"cfg_cfgRate"},{"name":"gstInclusive","label":"含税金额","type":"money"},{"name":"explain","label":"物料说明"},{"name":"category","label":"所属分类","type":"materialCategory"}],
  columns: ["title","internalCode","externalCode","sku","unit","taxExcluded","rate","gstInclusive","explain","category"],
  condition: ["title"],
  slots: {
      header$() {
      return (
        <>
        <z-action p='glq76rq2' label='添加物料' mode='dialog' fields={["title","category","internalCode","externalCode","sku","unit","taxExcluded","rate",{"name":"gstInclusive","slot":"gstInclusiveSlot"},"explain"]} rules={{"title":{"message":"请输入正确内容","required":true},"internalCode":{"message":"请输入正确内容","required":true},"externalCode":{"message":"请输入正确内容","required":true},"sku":{"message":"请输入正确内容","required":true},"unit":{"message":"请输入正确内容","required":true},"taxExcluded":{"message":"请输入正确内容","required":true},"rate":{"message":"请输入正确内容","required":true},"gstInclusive":{"message":"请输入正确内容","required":true}}} br='before' type='primary' url='/do/put/material' />
        </>
      )
    },
    action$({ row }) {
      return (
        <>
          <z-action p='5139hskd' label='编辑' mode='dialog' fields={["title","category","internalCode","externalCode","sku","unit","taxExcluded","rate",{"name":"gstInclusive","slot":"gstInclusiveSlot"},"explain"]} br='before' link data={row} url='/do/patch/material' includeTitle='r' />
<z-action p='h38kubmu' label='删除' mode='confirm' link data={row} url='/do/delete/material' />
        </>
      )
    }
  }
}
  